<form id="pagerForm" method="post" action="">
	<input type="hidden" name="pageNum" value="{$pageNum}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="orderField" value="{$orderField}" />
	<input type="hidden" name="orderDirection" value="{$orderDirection}" />
	<input type="hidden" name="keywords" value="{$keywords}" />
	<input type="hidden" name="sfield" value="{$sfield}" />
	<input type="hidden" name="platform" value="{$platform}" />
</form>

<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="" method="post">
		<input type="hidden" name="m" value="{$module_name}" />
		<input type="hidden" name="a" value="{$action_name}" />
	<div class="searchBar">
		<ul class="searchContent">
			<li style="width:210px;">
				<label style="width:60px;">关键字：</label>
				<input type="text" name="keywords" value="{$keywords}" style="width:120px;"/>
			</li>
			<li style="width:80px;">
			<select name="sfield" class="combox">
				<option value="all" {if $sfield=='all'}selected="selected"{/if}>请选择</option>
				<option value="username" {if $sfield=='username'}selected="selected"{/if}>用户名</option>
				<option value="id" {if $sfield=='id'}selected="selected"{/if}>编号</option>
				<option value="mobile" {if $sfield=='mobile'}selected="selected"{/if}>手机号码</option>
			</select>
			<input type="hidden" name="sfield_name" value="id,username,mobile" />
			</li>
			<div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div>
		</ul>
	</div>
	</form>
</div>
<div class="pageContent">
	<div id="user_list">
	<table class="list" layoutH="63">
		<thead>
			<tr>
				<th width="5%" orderField="id" {if $orderField=='id'}class="{$orderDirection}"{/if}>编号</th>
				<th width="10%" orderField="username" {if $orderField=='username'}class="{$orderDirection}"{/if}>用户名</th>														
				<th width="10%" orderField="mobile" {if $orderField=='mobile'}class="{$orderDirection}"{/if}>手机</th>
				<th width="15%" orderField="email" {if $orderField=='email'}class="{$orderDirection}"{/if}>邮箱</th>
				<th width="10%"  class="{$orderDirection}">云购店</th>
				<th width="15%" orderField="last_logintime" {if $orderField=='last_logintime'}class="{$orderDirection}"{/if}>最后登陆</th>
				<th width="5%" orderField="status" {if $orderField=='status'}class="{$orderDirection}"{/if}>状态</th>
			</tr>
		</thead>
		<tbody>
<volist name="list" id="vo">
			<tr target="sid_dv" rel="{$vo['id']}">
				<td>{$vo['id']}</td>
				<td><a title="用户信息" target="dialog" width="580" height="450" rel="User_detail_{$vo['id']}" href="{:U('User/detail',array('id'=>$vo['id']))}">{$vo['username']}</a></td>
				<td>{$vo['mobile']}</td>
				<td>{$vo['email']}</td>
				<td>{if $vo['shops']}<a title="云购店列表" target="navTab"  rel="Site_site_list_{$vo['id']}"
					href="{:U('Site/site_list',array('id'=>$vo['id']))}">{$vo['shops']}</a>{else}{$vo['shops']}{/if}</td>
				<td>{if $vo['last_logintime']}{$vo['last_logintime']|date="Y-m-d",###}{else}--{/if}</td>
				<td>{if $vo['status']=='0'}禁用{else}有效{/if}</td>
			</tr>
</volist>
		</tbody>
	</table>
	</div>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20" {if $numPerPage==20}selected="selected"{/if}>20</option>
				<option value="50" {if $numPerPage==50}selected="selected"{/if}>50</option>
				<option value="66" {if $numPerPage==66}selected="selected"{/if}>66</option>
				<option value="100" {if $numPerPage==100}selected="selected"{/if}>100</option>
				<option value="200" {if $numPerPage==200}selected="selected"{/if}>200</option>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="10" currentPage="{$pageNum}"></div>
	</div>
</div>
